<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>02_元素浮动后的特点</title>
    <style>
      .outer {
        width: 600px;
        height: 600px;
        padding: 10px;
        background: skyblue;
      }
      .box {
        font-size: 20px;
      }
      .box1 {
        background-color: gray;
      }
      .box2 {
        float: left;
        background-color: orange;
      }
      .box3 {
        background-color: green;
      }
    </style>
  </head>

  <body>
    <div class="outer">
      <div class="box box1">盒子1</div>
      <div class="box box2">盒子2</div>
      <div class="box box3">盒子3</div>
    </div>
  </body>
</html>
